package com.zhongkun.datahome.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongkun.datahome.service.domain.AppointmentRecord;
import com.zhongkun.datahome.service.domain.AppointmentTimeSlot;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 预约记录表Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
public interface AppointmentRecordMapper extends BaseMapper<AppointmentRecord> {

    @Select("select * from appointment_record where appointment_id = #{appointmentId} and time_slot_id = #{timeSlotId} and  appointment_status= 1")
    List<AppointmentRecord> queryByAppointmentIdAndTimeSlotId(@Param("appointmentId") Long appointmentId, @Param("timeSlotId") Long timeSlotId);
}
